package com.cqyanyu.yanyu.model;

import android.os.Parcel;
import android.os.Parcelable;


public class ImageEntity implements Parcelable {

	/**
	 * 原图
	 */
	public String image;

	/**
	 * 缩略图
	 */
	public String thumbnail;

	/**
	 * 缩略图宽度
	 */
	public int width;

	/**
	 * 缩略图高度
	 */
	public int height;
	public ImageEntity(){

	}

	protected ImageEntity(Parcel in) {
		image = in.readString();
		thumbnail = in.readString();
		width = in.readInt();
		height = in.readInt();
	}

	public static final Creator<ImageEntity> CREATOR = new Creator<ImageEntity>() {
		@Override
		public ImageEntity createFromParcel(Parcel in) {
			return new ImageEntity(in);
		}

		@Override
		public ImageEntity[] newArray(int size) {
			return new ImageEntity[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(image);
		dest.writeString(thumbnail);
		dest.writeInt(width);
		dest.writeInt(height);
	}
}
